<form action="<?php echo url('permission/update');?>" method="post">
	<input type="hidden" name="id" value="<?php echo $record['id'];?>"/>
	<div class="form-row">
		<label for="user_id">user_id</label>
		<select name="user_id">
			<option value="0">select</option>
			<?php foreach($users as $user): ?>
			<option value="<?php echo $user['id'];?>"<?php echo $user['id']==$record['id']?'selected="selected"':'';?>><?php echo $user['nick'];?></option>
			<?php endforeach;?>
		</select>
	</div>
	<div class="form-row">
		<label for="permission">permission</label>
		<textarea name="permission"><?php echo $record['permission'];?></textarea>
	</div>
	<div class="form-button">
		<input type="submit" name="submit" value="更新"/>
		<a href="<?php echo url('permission/index');?>">返回</a>
	</div>
</form>